package com.fw.ui.view.common;

import com.vaadin.ui.VerticalLayout;

public class SortableVerticalLayout extends VerticalLayout implements Comparable<SortableVerticalLayout> {

    private static final long serialVersionUID = 8241767598601485609L;

    @Override
    public int compareTo(SortableVerticalLayout o) {
	return this.getComponent(0).getCaption().compareToIgnoreCase(o.getComponent(0).getCaption());
    }

}
